<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>主页</title>
<jsp:include page="/common.jsp"></jsp:include>
<script type="text/javascript">
	$(function(){
		goShow();
	}); 
</script>
<body data-spy="scroll" data-target=".subnav" data-offset="50">
	<!--        悬浮导航-->
	<div class="navbar">
		<div class="navbar-inner">
			<div class="container">
				<a class="btn btn-navbar" data-toggle="collapse"
					data-target=".nav-collapse"> <span class="icon-bar"></span> <span
					class="icon-bar"></span> <span class="icon-bar"></span>
				</a> <a class="brand" href="#">方案</a>
				<div class="nav-collapse">
					<div class="pull-right">
						<button class="btn btn-primary" onclick="tologin()">注销</button>
						<button class="btn btn-primary" onclick="close_page()">退出</button>
					</div>
				</div>
			</div>
		</div>
	</div>

	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span2">
				<%-- <div class="well" style="padding: 8px 0;">
					<ul class="nav nav-list">
					<li><a href="#" onclick="goView('view/show.jsp')">首页</a></li>
					<c:forEach var="menu" items="${menus }">
						<c:if test="${menu.father==null }">
							<li class="nav-header">${menu.name }</li>
							<c:forEach var="menu1" items="${menus }">
										<c:if test="${menu.id==menu1.father.id }">
										<li><a href="#" onclick="goView('${menu1.url}')">${menu1.name}</a></li>
										</c:if>
							</c:forEach>
						</c:if>
					</c:forEach>
					</ul>
				</div> --%>
				<c:forEach var="menu" items="${menus }">
					<c:if test="${menu.father==null }">
						<div class="accordion-group">
							<div class="accordion-heading">
								<a class="accordion-toggle" data-toggle="collapse"
									data-parent="#accordion2" href="#collapse${menu.id }"> ${menu.name
									} </a>
							</div>
							<div id="collapse${menu.id }" class="accordion-body collapse">
								<div class="accordion-inner">
									<ul class="nav nav-list">
									<c:forEach var="menu1" items="${menus }">
										<c:if test="${menu.id==menu1.father.id }">
											<li><a href="#" onclick="goView('${menu1.url}')">${menu1.name}</a></li>
										</c:if>
									</c:forEach>
									</ul>
								</div>
							</div>
						</div>
					</c:if>
				</c:forEach>
		</div>
		<div class="span10" id="view">
			<!--sidebar conent-->
		</div>
	</div>
	</div>
</body>
</html>